Skip to content

Fix none bump type semantics and add hook-aware bumpy check#53

Merged
theoephraim merged 4 commits into
mainfrom
fix/none-semantics-and-check-hooks
Apr 28, 2026
Merged

Fix none bump type semantics and add hook-aware bumpy check#53
theoephraim merged 4 commits into
mainfrom
fix/none-semantics-and-check-hooks

Conversation

@theoephraim

Copy link
Copy Markdown
Member

Summary

  • none bump type no longer suppresses cascading bumps — it now just skips the direct bump, while allowing dependency propagation to still apply normally. This makes none useful for acknowledging internal changes (tests, config) that don't need a release on their own, without blocking cascades.
  • bumpy check now detects untracked/staged bump files — fixes the chicken-and-egg problem where bump files created but not yet committed weren't detected.
  • New --hook pre-commit / --hook pre-push flag — controls which bump files count based on git status. Output annotates bump files with their status (staged, untracked).

Test plan

  • All 202 existing tests pass
  • New tests cover none allowing cascades, none with no cascade, and none with out-of-range cascade
  • Manual test: create bump file with none, verify bumpy check passes
  • Manual test: verify --hook pre-push warns about uncommitted bump files

- `none` no longer suppresses cascading bumps — it just skips the direct
  bump while allowing dependency propagation to still apply normally
- `bumpy check` now detects untracked/staged bump files so it works
  before committing
- New `--hook pre-commit` / `--hook pre-push` flag controls which bump
  files count based on git status
- Output annotates bump files with their git status (staged, untracked)
@github-actions

github-actions Bot commented Apr 28, 2026

Copy link
Copy Markdown

bumpy-frog

The changes in this PR will be included in the next version bump.

minor Minor releases

  • @varlock/bumpy 1.3.0 → 1.4.0

Bump files in this PR

Click here if you want to add another bump file to this PR


This comment is maintained by bumpy.

Empty bump files no longer short-circuit — they act as a fallback
covering uncovered packages in non-strict mode, while strict mode
still requires per-package acknowledgment.
- `bumpy add --none` creates a bump file with all changed packages set
  to `none` — convenient for --strict mode
- Empty bump files no longer bypass --strict mode
- Updated docs and bump file
@theoephraim theoephraim force-pushed the fix/none-semantics-and-check-hooks branch from 8f274e3 to 519e938 Compare April 28, 2026 04:12
@theoephraim theoephraim merged commit 858139a into main Apr 28, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant